package oop.day04.homework;
public class StaticDemo
{
    public static void main(String[] args)
    {
        System.out.println("StaticVar show .......................");
        StaticVar staticVar = new StaticVar();
        System.out.println("staticVar.x = " + StaticVar.x + "  staticVar.y = " + staticVar.y);
        StaticVar staticVar1 = new StaticVar();
        System.out.println("staticVar.x = " + StaticVar.x + "  staticVar.y = " + staticVar1.y);
        StaticVar staticVar2 = new StaticVar();
        System.out.println("staticVar.x = " + StaticVar.x + "  staticVar.y = " + staticVar2.y);
        StaticVar staticVar3 = new StaticVar();
        System.out.println("staticVar.x = " + StaticVar.x + "  staticVar.y = " + staticVar3.y);
        System.out.println("StaticVar show over ......................");
        System.out.println("-----------------------------------------------------------------------------");
        System.out.println("StaticBlock show .........................");
        StaticBlock staticBlock = new StaticBlock();
        StaticBlock staticBlock1 = new StaticBlock();
        StaticBlock staticBlock2 = new StaticBlock();
        System.out.println("StaticBlock show over......................");
        System.out.println("-----------------------------------------------------------------------------");
        System.out.println("StaticMethod show ...........................");
        StaticMethod staticMethod = new StaticMethod();
        staticMethod.function();
        //
        StaticMethod.staticFunction();
        staticMethod.staticFunction();
        System.out.println("StaticMethod show over ............................");
        System.out.println("-------------------------------------------------------");

    }
}
